package com.huadi.ssm.Service;

import com.huadi.ssm.dao.IdentifyrecordMapper;
import com.huadi.ssm.po.Identifyrecord;

import java.util.List;

public class IdentifyImpl implements IdentifyService{

    private IdentifyrecordMapper identifyrecordMapper;

    public void setIdentifyrecordMapper(IdentifyrecordMapper identifyrecordMapper) {
        this.identifyrecordMapper = identifyrecordMapper;
    }

    @Override
    public int addIdentifyrecord(String evidenceId, String identifyResult, String submitterId, String submitterName){
        return identifyrecordMapper.addIdentifyrecord(evidenceId,identifyResult,submitterId,submitterName);
    }

    @Override
    public int deleteIdentifyrecordById(String identifyId) {
        return identifyrecordMapper.deleteIdentifyrecordById(identifyId);
    }

    @Override
    public int updateIdentifyrecord(Identifyrecord identifyrecord) {
        return identifyrecordMapper.updateIdentifyrecord(identifyrecord);
    }

    @Override
    public Identifyrecord findIdentifyrecordById(String identifyId) {
        return identifyrecordMapper.findIdentifyrecordById(identifyId);
    }

    @Override
    public List<Identifyrecord> findAllIdentifyrecord() {
        return identifyrecordMapper.findAllIdentifyrecord();
    }
}
